import request from '@/utils/request'
// 获取标签库存管理
export function Wms_ESLStockData(data: any) {
  return request({
    url: '/Wms_ESLStock/GetPageData',
    method: 'post',
    data,
  })
}

// 生成射频码
export function addbatcheslcode(data: any) {
  return request({
    url: '/Wms_ESLStock/addbatcheslcode',
    method: 'post',
    data,
  })
}

// 设置条形码
export function editbatchuuid(data: any) {
  return request({
    url: '/Wms_ESLStock/editbatchuuid',
    method: 'post',
    data,
  })
}

// 公司列表
export function CompanyData(data: any) {
  return request({
    url: '/Base_Company/GetPageData',
    method: 'post',
    data,
  })
}

// 部门列表
export function DepartmentData(data: any) {
  return request({
    url: '/Base_Department/GetPageData',
    method: 'post',
    data,
  })
}

// 标签库存中的标签出库
export function outESLStock(data: any) {
  return request({
    url: '/Wms_ESLStock/outeslstock',
    method: 'post',
    data,
  })
}

// 基站库存列表
export function BaseStationStockData(data: any) {
  return request({
    url: '/Wms_BaseStationStock/GetPageData',
    method: 'post',
    data,
  })
}

// 添加与编辑基站库存
export function bsstockedit(data: any) {
  return request({
    url: '/Wms_BaseStation/bsstockedit',
    method: 'post',
    data,
  })
}

// 查看基站库存详情
export function getbss(data: any) {
  return request({
    url: '/Wms_BaseStation/getbss',
    method: 'post',
    data,
  })
}

// 出库
export function outputbs(data: any) {
  return request({
    url: '/Wms_BaseStation/outputbs',
    method: 'post',
    data,
  })
}

// 退库
export function unbingbs(data: any) {
  return request({
    url: '/Wms_BaseStation/unbingbs',
    method: 'post',
    data,
  })
}

// ESL列表
export function ESLInfoData(data: any) {
  return request({
    url: '/Wms_ESLInfo/GetPageData',
    method: 'post',
    data,
  })
}

// 基站列表
export function BaseStationData(data: any) {
  return request({
    url: '/Wms_BaseStation/GetPageData',
    method: 'post',
    data,
  })
}

// 商品列表
export function ProductsData(data: any) {
  return request({
    url: '/Products/GetPageData',
    method: 'post',
    data,
  })
}

// 编辑标签列表
export function saveESLInfo(data: any) {
  return request({
    url: '/Wms_ESLInfo/save',
    method: 'post',
    data,
  })
}

// 标签管理推送消息
export function sendpro(data: any) {
  return request({
    url: '/Wms_ESLInfo/sendpro',
    method: 'post',
    data,
  })
}

// 标签保存上传图地址
export function editfield2(data: any) {
  return request({
    url: '/Wms_ESLInfo/editfield2',
    method: 'post',
    data,
  })
}

// --标签推送上传图
export function editfield3(data: any) {
  return request({
    url: '/Wms_ESLInfo/editfield3',
    method: 'post',
    data,
  })
}

// --更新标签库存信息
export function eslstockedit(data: any) {
  return request({
    url: '/Wms_ESLStock/eslstockedit',
    method: 'post',
    data,
  })
}

// 标签退库
export function unbindesl(data: any) {
  return request({
    url: '/Wms_ESLStock/unbindesl',
    method: 'post',
    data,
  })
}

// 保存物资
export function savebinditem(data: any) {
  return request({
    url: '/Wms_ESLInfo/savebinditem',
    method: 'post',
    data,
  })
}


// 新增标签
export function ESLSave(data: any) {
  return request({
    url: '/Wms_ESLStock/Save',
    method: 'post',
    data,
  })
}

// 绑定模板
export function batchbindetcode(data: any) {
  return request({
    url: '/Wms_ESLInfo/batchbindetcode',
    method: 'post',
    data,
  })
}

// 绑定物资
export function batchbinditem(data: any) {
  return request({
    url: '/Wms_ESLInfo/batchbinditem',
    method: 'post',
    data,
  })
}

// 批量绑定物资
export function batchrebootesl(data: any) {
  return request({
    url: '/Wms_ESLInfo/batchrebootesl',
    method: 'post',
    data,
  })
}

// 批量绑定基站标签
export function batchbindbsid(data: any) {
  return request({
    url: '/Wms_ESLInfo/batchbindbsid',
    method: 'post',
    data,
  })
}


// 获取基站详情
export function getbs(data: any) {
  return request({
    url: '/Wms_BaseStation/getbs',
    method: 'post',
    data,
  })
}

// 编辑基站详情
export function editbs(data: any) {
  return request({
    url: '/Wms_BaseStation/editbs',
    method: 'post',
    data,
  })
}

